import './styles/normalize.css';
import './styles/index.less';
import {createApp} from 'vue';
import App from './App.vue';
import {setupRouter} from './routes';
import {setupStore} from './models/index';
import {setupPlugin} from './plugins/index';
import {setupI18n} from './locales/index';

function bootstrap() {
  const app = createApp(App);
  // 配置 store
  setupStore(app);
  // 配置路由
  setupRouter(app);
  // 配置加载 库 或者 插件
  setupPlugin(app);
  // 配置 I18n 国际化多语言
  setupI18n(app);

  app.mount('#app');
}

bootstrap();
